<?php
$login_lbl = BUtils::T('login_lbl');
$password_lbl = BUtils::T('password_lbl');
$login_facebook_lbl = BUtils::T('login_facebook_lbl');
$login_or_email_lbl = 'Or with old email login';

$this->pageTitle = $login_lbl;
$this->breadcrumbs=array(
	$login_lbl
);

$nextUrl = Yii::app()->request->getQuery('next', null);
?>
<div class="launchbox">
<h1><?php echo $login_lbl; ?></h1>
<br />
<div class="form">
	<div class="facebook-login">
		<a href="javascript:;" class="btn-facebook"><span><?php echo $login_facebook_lbl; ?></span></a>
		<br />
		<p>Just login with your Facebook account. In this way, you don't need to remember password any more.</p>
		<p>If you don't want to use our service any more, you can safely remove your account.</p>
		<p>We would love to listen to your voice, please leave your feedback or any suggestion.</p>
	</div>
<?php if (YII_DEBUG) { ?>
	<p class="or"><?php echo $login_or_email_lbl ?></p>
	<div class="login-form">
<?php
/** @var BootActiveForm $form */
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id'=>'login-form',
    'htmlOptions'=>array('class'=>''),
	'enableClientValidation'=>false,
	'clientOptions'=>array(
		'validateOnSubmit'=>false,
	),
));
echo $form->textFieldRow($model, 'email', array('class'=>'auto size-large', 'placeholder'=>'tony@example.com'));
echo $form->passwordFieldRow($model, 'password', array('class'=>'auto size-large', 'placeholder'=>$password_lbl));
//echo $form->checkboxRow($model, 'rememberMe');
$this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'label'=>$login_lbl, 'type'=>'success', 'size'=>''));
//echo CHtml::link('Forgot your password?', Yii::app()->createUrl('/accounts/find_password'), array('style'=>'margin-left:14px;'));
$this->endWidget();

$form->errorSummary($model);
?>
	</div>
<?php } ?>
</div>
</div>